<%@ page language="java" import="java.util.*,com.hs.dnms.model.*" pageEncoding="utf-8"%>
 <%
   DnmsBook obj = (DnmsBook)request.getAttribute("obj"); 

  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="../../include.jsp"%>  
<script language="javascript" type="text/javascript" src="<%=basePath%>common/uploadify/jquery-1.4.2.min.js"></script>
<script language="javascript" type="text/javascript" src="<%=basePath%>common/javascripts/My97DatePicker/WdatePicker.js"></script>
<script language="javascript" type="text/javascript" src="<%=basePath%>common/uploadify/jquery.uploadify.v2.1.4.js"></script>
<script type="text/javascript" src="<%=basePath%>common/uploadify/swfobject.js"></script>
<LINK rel=stylesheet type=text/css href="<%=basePath%>common/uploadify/uploadify.css"/>  
<script src='<%=basePath%>dwr/interface/dataProhelper.js'></script>  

<script language="javascript" type="text/javascript">
function downLoadFile(id){
 	window.location.href="<%=basePath%>produce/downloadFile.do?pid="+id;
 
 
 }            
</script>
</head>
<body>
<div class="deta_proce">
    <ul>
        <li>原文下载</li> 
    </ul>
    <div>
        <table border="0" cellspacing="0" cellpadding="0" class="atta_tab">
          <caption>
          已上传原文
          </caption>
          <tr>
            <th>文件名称</th>
            <th width="10%">下载</th> 
          </tr>
           <tbody id="listfile">
          <%
             if(null != obj.getFileset() && !(obj.getFileset().isEmpty())){
                   Iterator iter = obj.getFileset().iterator();
                   int i = 0;  
                   while(iter.hasNext()){
          	             DnmsFile fileobj = (DnmsFile)iter.next();
          	             i++; 
          	             Long fileid = fileobj.getId();
          	               
           %>
          <tr id="file_<%=fileid %>">
            <td><a href="javaScript:downLoadFile('<%=fileid %>')"><%=fileobj.getFilename() %></a> </td>
            <td><a href="javascript:onclick=downLoadFile('<%=fileid %>');">下载</a> </td> 
          </tr>
          <%}}else{ %> 
          </tbody>
          <%} %> 
           
        </table> 
    </div>
</div> 
</body>
</html>

